<%@ page contentType="text/html;charset=UTF-8" language="java" import="java.util.List,model.MeetingRoom"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="en">
<!--jstl：java standard tag library    -->
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>登录页面</title>
    <link rel="stylesheet" href="<%=request.getContextPath()%>/css/base.css">
    <link rel="stylesheet" href="<%=request.getContextPath()%>/css/bootstrap.min.css">
    <link rel="stylesheet" href="<%=request.getContextPath()%>/css/common.css">
    <link rel="stylesheet" href="<%=request.getContextPath()%>/css/meeting.css">
    <script src="<%=request.getContextPath()%>/js/jquery-2.1.0.min.js"></script>
    <script src="<%=request.getContextPath()%>/js/bootstrap.min.js"></script>


</head>

<body>
<iframe src="<%=request.getContextPath()%>/header.jsp" width="100%" height="100px" scrolling="no" frameborder="0"></iframe>
<div class="main">
    <iframe src="<%=request.getContextPath()%>/main_left.jsp" align="left" width="200px" height="100%" scrolling="no" frameborder="0"></iframe>
    <div class="right">
        <h4 class="fixedPosition">会议预定 > 查看会议室</h4>
        <div class="meeting">
            <h4>所有会议室：</h4>
            <div class="container">
                <table class="table table-bordered">
                    <tr>
                        <th>部门编号</th>
                        <th>会议室名称</th>
                        <th>容纳人数</th>
                        <th>当期状态</th>
                        <th>操作</th>
                    </tr>
<c:forEach items="${meetingroomsList}" var="room">
                    <tr>
                        <td>${room.roomnum} </td>
                        <td>${room.getRoomname()}</td>
                        <td>${room.getCapacity()} </td>
                        <td>${room.getStatus() eq "0"?"可用":"不可用"}</td>
                        <td><a href="<%=request.getContextPath()%>/servlet/UpdateMeetingRoomStatusServlet?roomid=${room.roomid}&status=${room.status}">切换状态</a></td>
                    </tr>
</c:forEach>
                </table>
            </div>
        </div>
    </div>
</div>
<iframe src="<%=request.getContextPath()%>/footer.jsp" width="100%" scrolling="no" frameborder="0"></iframe>

</body>

</html>